package com.tomorrow.weather.facade;

import com.tomorrow.analyzeFactory.DataAnalyzeFactory;
import com.tomorrow.simplefactory.http.HttpFactory;
import com.tomorrow.weather.entity.Weather;

public class WeatherFacade
{
	public static Weather getWeatherFromChina()
	{
		String strData = HttpFactory.getHttp().getUrlContent(
				"http://m.weather.com.cn/data/101010100.html");
		return (Weather) (strData != null ? DataAnalyzeFactory.getAnalyze()
				.getWeatherObject(strData) : null);
	}
}
